﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LeEdu.MODEL;
using System.Data;

namespace LeEdu.DAL
{
    public class UserInfoDAL : BaseDAL<UserInfo>
    {
        DbContextEntity entity = new DbContextEntity();

        public UserInfo login(string Email, string Upwd)
        {
            UserInfo uf = entity.UserInfos.FirstOrDefault(p => p.Email == Email && p.Upwd == Upwd);
            return uf;
        }

    }
}
